#define _CRT_SECURE_NO_WARNINGS 1
#include"heap.h"

void test1()
{
	int a[] = { 4,21,2,17,8,9,53,23,65,78 };
	HP q;
	HPinit(&q);
	for (size_t i = 0; i < sizeof(a) / sizeof(int); i++)
	{
		HPpush(&q, a[i]);
	}
	while (!HPempty(&q))
	{
		printf("%d ", HPtop(&q));
		HPpop(&q);
	}
	printf("\n");
}

int main()
{
	test1();
	return 0;
}